草庐IT

java treeset 抛出 illegalArgumentException : key out of range

全部标签

android - AdvertisingIdClient.getAdvertisingIdInfo(context) 正在抛出 NoClassDefFoundError

我正在尝试使用AdvertisingIdClient获取我的AIR应用程序的广告ID。所以我喜欢AdvertisingIdClient.InfoadInfo=AdvertisingIdClient.getAdvertisingIdInfo(context)。我没有收到任何编译时错误。我从中生成了ANE。当控件遇到此语句时,它会立即抛出NoClassDefFoundError。我不知道到底发生了什么。这是我的扩展代码publicclassGetAdvertismentIDimplementsFREFunction{@OverridepublicFREObjectcall(FREConte

java - 未捕获匿名内部类中抛出的异常

我有一个具有匿名内部类的方法。我想从匿名内部类内部抛出一个未经检查的异常,并在类外捕获它。我在做这件事时遇到了麻烦。@OverridepublicvoidshowAchievements(){androidLauncher.runOnUiThread(newRunnable(){@Overridepublicvoidrun(){try{loadingView.showLoadingView();Games.getAchievementsClient(androidLauncher,signedInAccount).getAchievementsIntent().addOnSuccess

android - MediaExtractor 在与 wav 文件一起使用时抛出 IllegalArgumentException

我正在像这样使用AndroidMediaExtractor:MediaExtractorextractor=newMediaExtractor();extractor.setDataSource("path/to/my/wav/file.wav");extractor.selectTrack(0);ByteBufferinputBuffer=codec.getInputBuffer(inputBufferIndex);intsampleSize=extractor.readSampleData(inputBuffer,0);inputBuffer由配置为AAC编码器的MediaCode

android - Simon Ics 日期选择器对话框抛出 android.view.InflateException : Binary XML file line #20: Error inflating class net. simonvt.widget.DatePicker

我在我的Android应用程序中使用Simon的ICS日期选择器库(https://github.com/SimonVT)。我有一个日期按钮,如果我点击那个按钮,它会在对话框中显示icsdatepicker。我的问题是,如果我点击按钮,它不会显示日期选择器对话框,但会显示以下错误:03-0210:46:59.521:E/AndroidRuntime(911):android.view.InflateException:BinaryXMLfileline#20:Errorinflatingclassnet.simonvt.widget.DatePicker03-0210:46:59.52

android - Robolectric 访问数据库抛出错误

我有一个测试创建了一个试图从数据库中获取一些数据的Activity。这失败并出现SQLiteException17:40:40.528[DEBUG][TestEventLogger]android.database.sqlite.SQLiteException:CannotopenSQLiteconnection,baseerrorcode:1417:40:40.528[DEBUG][TestEventLogger]atorg.robolectric.shadows.ShadowSQLiteConnection.rethrow(ShadowSQLiteConnection.java:5

android - 一段时间后条码扫描器抛出 java.lang.UnsatisfiedLinkError

我有一个条形码扫描器,它使用新的android视觉库,它在我的设备和其他几个设备上都能完美运行。但突然它停止工作,我在日志中看到以下异常:Noimplementationfoundforcom.google.android.gms.vision.barcode.internal.NativeBarcode[]com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(int,int,java.nio.ByteBuffer,com.google.android.gms

java - 为什么未使用的 Activity 在上传到 Play 商店时抛出异常?

我有一个最近上传到Play商店的应用程序,启用了Crashlytics。此应用程序中有一个名为StartQuizActivity的Activity,它是在开发期间创建的,但目前未使用。Activity仍然在list中声明,但应用程序中没有调用它的Intent。我收到了一份带有堆栈跟踪的崩溃报告,表明设备已尝试启动此Activity,这导致了IllegalArgumentException,表明所需的对象未按Intent传递:FatalException:java.lang.RuntimeException:UnabletostartactivityComponentInfo{com.f

Android工作室错误java.lang.IllegalArgumentException : Resource name cannot be empty

我正尝试在3.0版中重新打开一个较旧的AndroidStudio项目。它编译和启动都很好,但如果我尝试在布局设计器中编辑布局,它不会加载,只是一直说它正在等待构建完成(它已经完成)。当我查看IDE错误时,我看到了这个错误:provider:org.jetbrains.android.augment.AndroidPsiAugmentProvider@2180343:Resourcenamecannotbeempty.AsIlookthoughthetraceinfo,Iseenothingthatpointsbackatmyproject.Anysuggestions?Hereisth

Android NDK 抛出信号 sigsegv : invalid address in debug mode

我最近实现了androidNDK来隐藏我的应用程序key和secret。因为每当我在androidstudio中以Debug模式运行我的应用程序时,我都会这样做,我的断点会被sigsegv中断(信号sigsegv:无效地址(故障地址:0x8))。当我的任何进程完全访问NDK时,就会发生这种情况。我对发生的事情感到困惑,因为我对NDK很陌生。我的C代码非常简单,看起来像这样:#includeJNIEXPORTjstringJNICALLJava_com_my_company_co_utilities_UtilFuncs_getSecretOne(JNIEnv*env,jobjectins

java - 记录或重新抛出此异常

Sonarcomplainingaboutloggingandrethrowingtheexception可能重复.这是我在类里面的代码:try{this.processDeepLinkData(data);}catch(finalExceptione){//Errorwhileparsingdata//NothingwecandoLogger.error(TAG,"ExceptionthrownonprocessDeepLinkData.Msg:"+e.getMessage());}和我的Logger类:importandroid.content.Context;importandr